Component({
  behaviors: [getApp().globalData.behavior],
  observers: {
    props(props) {
      this.setData({
        value: props.initValue
      })
    }
  },
  data: {
    value: 1,
  },
  methods: {
    onChange({ detail }) {
      this.setData({ value: detail });
    },
  },
});
